import request from '@/utils/request'

//首页数据
export function getIndex() {
    return request.get({ url: '/admin/index/index' })
}

// 装修页面
export function getDecorate(data: any) {
    return request.get({ url: '/admin/index/decorate', data })
}

// 获取工厂分页 /admin/m/shop/page
export function getFactoryListAPI(data: any) {
    return request.get({ url: '/admin/m/shop/page', data })
}

// 获取工厂对象 /admin/m/shop/{id}
export function getFactoryAPI(id: string, data: { type: number }) {
    return request.get({ url: `/admin/m/shop/${id}`, data })
}
